package com.lovo.controller;

import com.lovo.remote.IOneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("two")
@RestController
public class TwoController {
@Autowired
private IOneService oneService;

  @GetMapping("remote")
  public String remote(){
    return  oneService.info();
  }
 @GetMapping("info")
  public String info(){
    return "第二台服务器提供的功能";
  }
}
